package com.isoft.filelistener.dao;

import com.isoft.filelistener.entity.DfmeArreDflt;
import com.isoft.filelistener.entity.MetaData;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface DfmeArreDao {
    @Insert("insert into TEAM_03.DFME_ARRE(SENDER,RECEIVER,SEQUENCE,SEND_TIME,TYPE,STYP," +
            "FLIGHT_FLID,FLIGHT_FATT,FLIGHT_FFID,FLIGHT_FIDE,FLIGHT_STAT,FLIGHT_ISTA,FLIGHT_MSTA,FLIGHT_MIST,FLIGHT_FRLT) values(" +
            "#{metaData.sender},#{metaData.receiver},#{metaData.sequence},#{metaData.sendTime},#{metaData.type},#{metaData.styp}," +
            "#{dflt.flightFlid},#{dflt.flightFatt},#{dflt.flightFfid},#{dflt.flightFide},#{dflt.flightStat},#{dflt.flightIsta},#{dflt.flightMsta},#{dflt.flightMist},#{dflt.flightFrlt})")
    int InsertDfmeArre(@Param("metaData") MetaData metaData, @Param("dflt") DfmeArreDflt dflt);
}
